#ifndef TDIALOGADDITEM_H
#define TDIALOGADDITEM_H

#include <QtGui/QDialog>
#include "tmenuitem.h"
#include <textedit.h>

namespace Ui {
    class TDialogAddItem;
}

class TDialogAddItem : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(TDialogAddItem)
public:
    explicit TDialogAddItem(QWidget *parent = 0);
    TMenuItem* showModal(TMenuItem*mi = 0);
    virtual ~TDialogAddItem();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::TDialogAddItem *m_ui;
private slots:
    void on_cbExec_clicked(bool checked);
    void on_leExecFile_textChanged(QString );
    void on_tbOpenFile_pressed();
    void on_pbOk_pressed();
    void on_pbCancel_pressed();
};

#endif // TDIALOGADDITEM_H
